// pages/my/index.js
import { apiUrls, makeRequest } from '../../utils/api'
import { authRequest } from '../../utils/net';
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userInfo: {}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let that = this;
    makeRequest({
      url: apiUrls.getUserInfo,
      method: 'GET',
      success: function (res) {
        that.setData({
          userInfo: res.data.data
        });
      },
      fail: function (err) {

      }
    });
  }
})